package com.tyqx.mapper;

import com.tyqx.bean.model.EthPoolInfo;
import com.tyqx.bean.model.StopBlockInterval;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EthPoolInfoMapper {

    public Integer insert(EthPoolInfo ethPoolInfo);


    public Integer insertBatch(@Param("ethPoolInfoList")List<EthPoolInfo> ethPoolInfoList);

    public Integer selectEthInfoByBlockNum(@Param("blockNum")Long blockNum);

    public List<StopBlockInterval> selectStopBlockInterval();

    public Long selectMaxBlock();

    public List<EthPoolInfo> selectEthPoolInfoByStartDateToEndDate(@Param("startDate") Date startDate,@Param("endDate") Date endDate);

    public List<Date> selectEthPoolInfoGroupByProductDate();

    public List<EthPoolInfo> selectEthPoolInfoByCurrentDay(@Param("currentDay") Date currentDay);
}
